package com.atguigu.mall.mallproduct.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.common.utils.Query;

import com.atguigu.mall.mallproduct.dao.PmsSkuInfoDao;
import com.atguigu.mall.mallproduct.entity.PmsSkuInfoEntity;
import com.atguigu.mall.mallproduct.service.PmsSkuInfoService;

@Service("pmsSkuInfoService")
public class PmsSkuInfoServiceImpl extends ServiceImpl<PmsSkuInfoDao, PmsSkuInfoEntity>
    implements PmsSkuInfoService {

  @Override
  public PageUtils queryPage(Map<String, Object> params) {
    IPage<PmsSkuInfoEntity> page =
        this.page(
            new Query<PmsSkuInfoEntity>().getPage(params), new QueryWrapper<PmsSkuInfoEntity>());

    return new PageUtils(page);
  }

}
